package com.ruoyi.jproom.mapper;

import com.ruoyi.jproom.entity.Residential;

import java.util.List;

/**
 * @author zeo
 * @explain 小区信息持久层
 * @date 2020/7/27 10:47
 */
public interface ResidentialMapper {
    /**
     * 获取所有小区信息数据
     * @param residential
     * @return
     */
    List<Residential> findResidentList(Residential residential);

    /**
     * 根据小区名称获取小区id
     * @param name
     * @return
     */
    String findResidentialIdByResidentialName(String name);

    /**
     * 根据小区id获取小区对象
     * @param residentialId
     * @return
     */
    Residential findResidentByResidentialId(String residentialId);

    /**
     * 新增小区
     * @param residential
     * @return
     */
    int addResidential(Residential residential);

    /**
     * 修改小区信息
     * @param residential
     * @return
     */
    int rentResidentialEdit(Residential residential);



}
